{% extends "index.html" %}
{% load i18n %}

{% block content %}

{% if availableEvents %}
	<h1>Evenements a venir</h1>
	<ul>
	{% for e in availableEvents %}
	    <li><a href="/events/detail/{{ e.id }}">{{ e.name }}</a> </li>
	{% endfor %}
	</ul>
{% else %}
		<h1>Pas d'evenement</h1>
{% endif %}
	<a href="/events/create">Creer un evenement</a>


{% endblock %}
